<?php

namespace Database\Factories\Article;

use App\Models\Article\ArticleInfo;
use Illuminate\Database\Eloquent\Factories\Factory;

class ArticleInfoFactory extends Factory
{
    protected $model = ArticleInfo::class;
    /**
     * Define the model's default state.
     *
     * @return array
     */
    public function definition()
    {
        return [
            'title'=>$this->faker->title,
            'classify_id'=>$this->faker->numberBetween(1,4),
            'key_word'=>$this->faker->name,
            'description'=>$this->faker->sentence,
            'content'=>$this->faker->sentence,
            'cover_url'=>$this->faker->url,
            'see_num'=>$this->faker->numberBetween(1000,2000),
            'year'=>$this->faker->numberBetween(2000,2022),
            'month'=>$this->faker->numberBetween(1,12),
            'up_down'=>1,
            'is_top'=>1,
            'sort'=>0,
        ];
    }
}
